<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function Driver()
			{
				 
					this.name=arguments[0];
				 
					this.age=arguments[1];	
				 
					this.sex=arguments[2];
					
				this.showInfo=function(){
					return this.name+",性别:"+this.sex+",年龄:"+this.age ;
				}	
			}
		    Driver.prototype.tele="1388888888";//+this.age
			Driver.prototype.selfIntro=function(){
				alert(this.showInfo()+","+this.tele);
			}
		
			var d=new Driver("老胡",35,"男");
			
			d.selfIntro();
			Date.prototype.toChinaDate=function()
			{
				return this.getFullYear()+"年"+(this.getMonth()+1)+"月"+this.getDate()+"日";
			}
			var time=new Date();
			alert(time.toChinaDate());
		</script>
	</head>
	<body>
	</body>
</html>
